/**
 * 地震相关计算工具类
 */

 export default {
    //计算本地烈度
    calcIntensity(EpiIntensity, distance){
        var localIntensity = 0;
        localIntensity = EpiIntensity - 4.0 * Math.log10(distance / 10 + 1.0)
        localIntensity = Math.round(localIntensity)
        if(localIntensity < 0){
            localIntensity = 0
        }
        return localIntensity
    }

 }